import request from '@/utils/request'

// 添加疾病信息
export function saveDiseaseInfo(diseaseInfo) {
    return request({
        url: '/gonitis/diseaseInfo/save',
        method: 'post',
        data: diseaseInfo
    })
}

// 修改疾病信息
export function updateDiseaseInfo(diseaseInfo) {
    return request({
        url: '/gonitis/diseaseInfo/update',
        method: 'put',
        data: diseaseInfo
    })
}

// 获取疾病信息添加列表
export function getAddCount(basicInfoId) {
    return request({
        url: '/gonitis/diseaseInfo/countList/' + basicInfoId,
        method: 'get'
    })
}

// 根据diseaseId获取患者疾病信息
export function queryDiseaseInfo(diseaseId) {
    return request({
        url: '/gonitis/diseaseInfo/' + diseaseId,
        method: 'get'
    })
}

// 删除疾病信息
export function removeDiseaseInfo(diseaseId) {
    return request({
        url: '/gonitis/diseaseInfo/remove/' + diseaseId,
        method: 'delete'
    })
}

// 获取疾病信息详情
export function diseaseDetail(diseaseId) {
    return request({
        url: '/gonitis/diseaseInfo/detailInfo/' + diseaseId,
        method: 'get'
    })
}